#pragma once

#include "gEnergy.h"
#include "gObject.h"
#include "gWeapon.h"

class gShip : public gObject
{
protected:
	gEnergy  m_energy;
	gWeapon* m_weaponPri;
	gWeapon* m_weaponSec;
public:
	gShip();
	~gShip();

	void initShip(gEnergy a_energy);
	void initWeaponPri(gWeapon* a_weapon);
	void initWeaponSec(gWeapon* a_weapon);

	void input();
	void update();
	void draw();

	void setEnergy(gEnergy a_energy){m_energy=a_energy;}

	gEnergy& getEnergy(){return m_energy;}
	gWeapon* getWeaponPri(){return m_weaponPri;}
	gWeapon* getWeaponSec(){return m_weaponSec;}
};